package com.ruiysoft.entity.sys;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author huazengguang
 * @since 2018-11-17
 */
@TableName("sys_micro_shop")
@Accessors(chain = true)
@Setter
@Getter
public class SysMicroShop extends Model<SysMicroShop> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("shop_name")
    private String shopName;

    @TableField("shop_img")
    private String shopImg;

    @TableField("brand_introduction")
    private String brandIntroduction;

    @TableField("official_website")
    private String officialWebsite;

    private String telephone;

    @TableField("shop_address")
    private String shopAddress;

    private Boolean enabled;

    @TableField("custom_configure")
    private Boolean customConfigure;

    @TableField("vip_level")
    private Integer vipLevel;

    @TableField("expiry_time")
    private Date expiryTime;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;

    @TableField("delete_flag")
    private Boolean deleteFlag;

    private Integer version;



//    public Long getId() {
//        return id;
//    }
//
//    public SysMicroShop setId(Long id) {
//        this.id = id;
//        return this;
//    }
//    public String getShopName() {
//        return shopName;
//    }
//
//    public SysMicroShop setShopName(String shopName) {
//        this.shopName = shopName;
//        return this;
//    }
//    public String getShopImg() {
//        return shopImg;
//    }
//
//    public SysMicroShop setShopImg(String shopImg) {
//        this.shopImg = shopImg;
//        return this;
//    }
//    public String getBrandIntroduction() {
//        return brandIntroduction;
//    }
//
//    public SysMicroShop setBrandIntroduction(String brandIntroduction) {
//        this.brandIntroduction = brandIntroduction;
//        return this;
//    }
//    public String getOfficialWebsite() {
//        return officialWebsite;
//    }
//
//    public SysMicroShop setOfficialWebsite(String officialWebsite) {
//        this.officialWebsite = officialWebsite;
//        return this;
//    }
//    public String getTelephone() {
//        return telephone;
//    }
//
//    public SysMicroShop setTelephone(String telephone) {
//        this.telephone = telephone;
//        return this;
//    }
//    public String getShopAddress() {
//        return shopAddress;
//    }
//
//    public SysMicroShop setShopAddress(String shopAddress) {
//        this.shopAddress = shopAddress;
//        return this;
//    }
//    public Boolean getEnabled() {
//        return enabled;
//    }
//
//    public SysMicroShop setEnabled(Boolean enabled) {
//        this.enabled = enabled;
//        return this;
//    }
//    public Boolean getCustomConfigure() {
//        return customConfigure;
//    }
//
//    public SysMicroShop setCustomConfigure(Boolean customConfigure) {
//        this.customConfigure = customConfigure;
//        return this;
//    }
//    public Date getCreateTime() {
//        return createTime;
//    }
//
//    public SysMicroShop setCreateTime(Date createTime) {
//        this.createTime = createTime;
//        return this;
//    }
//    public Date getUpdateTime() {
//        return updateTime;
//    }
//
//    public SysMicroShop setUpdateTime(Date updateTime) {
//        this.updateTime = updateTime;
//        return this;
//    }
//    public Boolean getDeleteFlag() {
//        return deleteFlag;
//    }
//
//    public SysMicroShop setDeleteFlag(Boolean deleteFlag) {
//        this.deleteFlag = deleteFlag;
//        return this;
//    }
//    public Integer getVersion() {
//        return version;
//    }
//
//    public SysMicroShop setVersion(Integer version) {
//        this.version = version;
//        return this;
//    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysMicroShop{" +
        "id=" + id +
        ", shopName=" + shopName +
        ", shopImg=" + shopImg +
        ", brandIntroduction=" + brandIntroduction +
        ", officialWebsite=" + officialWebsite +
        ", telephone=" + telephone +
        ", shopAddress=" + shopAddress +
        ", enabled=" + enabled +
        ", customConfigure=" + customConfigure +
                ", expiryTime=" + expiryTime +
                ", vipLevel=" + vipLevel +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", deleteFlag=" + deleteFlag +
        ", version=" + version +
        "}";
    }
}
